package cn.wetcland.urban.framework.mapper;

import cn.wetcland.urban.framework.vo.CustomerOrderDetailsVO;
import cn.wetcland.urban.framework.vo.CustomerOrderListItemVO;
import cn.wetcland.urban.framework.vo.DriverGainOrderListItemVO;
import cn.wetcland.urban.framework.vo.DriverOrderListItemVO;
import cn.wetcland.urban.generator.domain.UtOrder;
import cn.wetcland.urban.generator.dto.BaseConditionSearchDTO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author Wetcland
* @description 针对表【ut_order】的数据库操作Mapper
* @createDate 2024-01-21 09:51:59
* @Entity generator.domain.UtOrder
*/
@Mapper
public interface UtOrderMapper extends BaseMapper<UtOrder> {

    Page<CustomerOrderListItemVO> customerOrderListByCustomerId(Page<CustomerOrderListItemVO> page, @Param("status") Integer status,@Param("customerId") Long customerId, @Param("search") BaseConditionSearchDTO searchDTO);

    CustomerOrderDetailsVO customerOrderDetails(Long id);

    Page<DriverGainOrderListItemVO> driverGainOrderList(Page<DriverGainOrderListItemVO> driverGainOrderListItemVOPage, @Param("search") BaseConditionSearchDTO searchDTO, @Param("driverId") Long driverId);

    Page<DriverOrderListItemVO> driverOrderListByDriverId(Page<CustomerOrderListItemVO> customerOrderListItemVOPage, @Param("status") Integer status, @Param("driverId") long loginIdAsLong,@Param("search") BaseConditionSearchDTO searchDTO);
}




